home *** CD-ROM | disk | FTP | other *** search
/ Network PC / Network PC.iso / amiga utilities / communication / internet / amitcp3.0b / src.lha / src / amitcp / netinet / tcpip.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-08  |  2.8 KB  |  79 lines

  1. /*
  2.  * $Id: tcpip.h,v 1.2 1993/03/03 20:58:36 jraja Exp $
  3.  *
  4.  * HISTORY
  5.  * $Log: tcpip.h,v $
  6.  * Revision 1.2  1993/03/03  20:58:36  jraja
  7.  * Added #ifdef to prevent multiple inclusion.
  8.  *
  9.  * Revision 1.1  92/11/17  16:31:22  16:31:22  jraja (Jarno Tapio Rajahalme)
  10.  * Initial revision
  11.  * 
  12.  *
  13.  */
  14.  
  15. /*
  16.  * Copyright (c) 1982, 1986 Regents of the University of California.
  17.  * All rights reserved.
  18.  *
  19.  * Redistribution and use in source and binary forms, with or without
  20.  * modification, are permitted provided that the following conditions
  21.  * are met:
  22.  * 1. Redistributions of source code must retain the above copyright
  23.  *    notice, this list of conditions and the following disclaimer.
  24.  * 2. Redistributions in binary form must reproduce the above copyright
  25.  *    notice, this list of conditions and the following disclaimer in the
  26.  *    documentation and/or other materials provided with the distribution.
  27.  * 3. All advertising materials mentioning features or use of this software
  28.  *    must display the following acknowledgement:
  29.  *    This product includes software developed by the University of
  30.  *    California, Berkeley and its contributors.
  31.  * 4. Neither the name of the University nor the names of its contributors
  32.  *    may be used to endorse or promote products derived from this software
  33.  *    without specific prior written permission.
  34.  *
  35.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  36.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  37.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  38.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  39.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  40.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  41.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  42.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  43.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  44.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  45.  * SUCH DAMAGE.
  46.  *
  47.  *    @(#)tcpip.h    7.4 (Berkeley) 6/28/90
  48.  */
  49.  
  50. #ifndef TCPIP_H
  51. #define TCPIP_H
  52.  
  53. /*
  54.  * Tcp+ip header, after ip options removed.
  55.  */
  56. struct tcpiphdr {
  57.     struct     ipovly ti_i;        /* overlaid ip structure */
  58.     struct    tcphdr ti_t;        /* tcp header */
  59. };
  60. #define    ti_next        ti_i.ih_next
  61. #define    ti_prev        ti_i.ih_prev
  62. #define    ti_x1        ti_i.ih_x1
  63. #define    ti_pr        ti_i.ih_pr
  64. #define    ti_len        ti_i.ih_len
  65. #define    ti_src        ti_i.ih_src
  66. #define    ti_dst        ti_i.ih_dst
  67. #define    ti_sport    ti_t.th_sport
  68. #define    ti_dport    ti_t.th_dport
  69. #define    ti_seq        ti_t.th_seq
  70. #define    ti_ack        ti_t.th_ack
  71. #define    ti_x2        ti_t.th_x2
  72. #define    ti_off        ti_t.th_off
  73. #define    ti_flags    ti_t.th_flags
  74. #define    ti_win        ti_t.th_win
  75. #define    ti_sum        ti_t.th_sum
  76. #define    ti_urp        ti_t.th_urp
  77.  
  78. #endif /* !TCPIP_H */
  79.